<ion-view view-title="Home" >

	<ion-content>
		<div class="main">
			<h1>Welcome Nepalact</h1>
			<br/>
			<hr/>
			<form id="uploadimage" action="" method="post" enctype="multipart/form-data">
				<div id="image_preview">
					<ion-scroll scrollX="true" scroll-avatar>
						<ion-avatar>
						  <img id="previewing" src="" alt="alt" *ngFor="let avatar of avatars" class="scroll-item" />
						</ion-avatar>
					</ion-scroll>
				</div>
				<hr id="line"/>
				<div id="selectImage">
					<label>Select Your Image</label>
					<br/>
					<input type="file" name="file" id="file" required />
					<input type="submit" value="Upload" class="submit" />
				</div>
			</form>
		</div>
		<button class="button button-full button-assertive" ng-click="takepicture()">
          Take Photo
		</button>
		</br>
		<button class="button button-full button-assertive" ng-click="dloadfile3()">
          Take Photo
		</button>
		<br/>
		<div>
			<form id="uploadimagecamera" action="" method="post" enctype="multipart/form-data">
				<!-- <div id="image_previewcamera"> -->
					<!-- <img id="previewingcamera" src="" alt="alt" /> -->
				<!-- </div> -->
				<div id="selectImage2">
					<input id="captured" name="file" type="hidden" value="" required />
					<input id="clicker" type="button" value="UploadIt"/>
				</div>
			</form>
		</div>
		-------------------------------------------------------------------</br>
<input id="btn" type="button" onclick="ab();" value="a">
</br>
</br>
<!-- <input id="btn2" type="button" onclick="ab2();" value="a2"> -->
<a id="download" download="myImage.jpg" href="" onclick="ab2(this);">Download to myImage.jpg</a>
<br>
-----------------------------
<br>
<img id="img2" crossOrigin="Anonymous" src="http://ec2-13-126-78-43.ap-south-1.compute.amazonaws.com:5001/Doctor_Template_03_25.jpg" hidden="">
<ion-scroll scrollX="true" scroll-avatar>
	<ion-avatar>
	  <canvas id="canvas1" width="553" height="782" *ngFor="let avatar of avatars" class="scroll-item"></canvas>
	</ion-avatar>
</ion-scroll>
	</ion-content>
</ion-view>
